import axios from "@/tool/axios";
// 获取商品分类数据列表
export const hqgoods = (obj) => axios.get("categories",{
    params:obj
})
// 添加分类
export const addgoods = (obj) => axios.post("categories",obj)
//商品分类参数（静态，动态）
export const getCategorieslist = (id, sel = "many") => axios.get(`categories/${id}/attributes`,{
    params:{sel}
})